Optimal. Leaf size=47 \[ \frac {\cosh (c+d x)}{a d}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{a^{3/2} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4133, 321, 205} \[ \frac {\cosh (c+d x)}{a d}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{a^{3/2} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 321
Rule 4133
Rubi steps
\begin {align*} \int \frac {\sinh (c+d x)}{a+b \text {sech}^2(c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {x^2}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=\frac {\cosh (c+d x)}{a d}-\frac {b \operatorname {Subst}\left (\int \frac {1}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{a d}\\ &=-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} \cosh (c+d x)}{\sqrt {b}}\right )}{a^{3/2} d}+\frac {\cosh (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.02, size = 328, normalized size = 6.98 \[ \frac {\text {sech}^2(c+d x) (a \cosh (2 (c+d x))+a+2 b) \left (\frac {a \left (\tan ^{-1}\left (\frac {\sqrt {a}-i \sqrt {a+b} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {b}}\right )+\tan ^{-1}\left (\frac {\sqrt {a}+i \sqrt {a+b} \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {b}}\right )\right )}{\sqrt {b}}-\frac {(a+4 b) \left (\tan ^{-1}\left (\frac {\sinh (c) \tanh \left (\frac {d x}{2}\right ) \left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt {a}-i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right )+\tan ^{-1}\left (\frac {\sinh (c) \tanh \left (\frac {d x}{2}\right ) \left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt {a}+i \sqrt {a+b} \sqrt {(\cosh (c)-\sinh (c))^2} \tanh \left (\frac {d x}{2}\right )\right )}{\sqrt {b}}\right )\right )}{\sqrt {b}}+4 \sqrt {a} \cosh (c+d x)\right )}{8 a^{3/2} d \left (a+b \text {sech}^2(c+d x)\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 595, normalized size = 12.66 \[ \left [\frac {\sqrt {-\frac {b}{a}} {\left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )} \log \left (\frac {a \cosh \left (d x + c\right )^{4} + 4 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + a \sinh \left (d x + c\right )^{4} + 2 \, {\left (a - 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, a \cosh \left (d x + c\right )^{2} + a - 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \, {\left (a \cosh \left (d x + c\right )^{3} + {\left (a - 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) - 4 \, {\left (a \cosh \left (d x + c\right )^{3} + 3 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{3} + a \cosh \left (d x + c\right ) + {\left (3 \, a \cosh \left (d x + c\right )^{2} + a\right )} \sinh \left (d x + c\right )\right )} \sqrt {-\frac {b}{a}} + a}{a \cosh \left (d x + c\right )^{4} + 4 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} + a \sinh \left (d x + c\right )^{4} + 2 \, {\left (a + 2 \, b\right )} \cosh \left (d x + c\right )^{2} + 2 \, {\left (3 \, a \cosh \left (d x + c\right )^{2} + a + 2 \, b\right )} \sinh \left (d x + c\right )^{2} + 4 \, {\left (a \cosh \left (d x + c\right )^{3} + {\left (a + 2 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + a}\right ) + \cosh \left (d x + c\right )^{2} + 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2} + 1}{2 \, {\left (a d \cosh \left (d x + c\right ) + a d \sinh \left (d x + c\right )\right )}}, \frac {2 \, \sqrt {\frac {b}{a}} {\left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )} \arctan \left (\frac {{\left (a \cosh \left (d x + c\right )^{3} + 3 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + a \sinh \left (d x + c\right )^{3} + {\left (a + 4 \, b\right )} \cosh \left (d x + c\right ) + {\left (3 \, a \cosh \left (d x + c\right )^{2} + a + 4 \, b\right )} \sinh \left (d x + c\right )\right )} \sqrt {\frac {b}{a}}}{2 \, b}\right ) - 2 \, \sqrt {\frac {b}{a}} {\left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right )} \arctan \left (\frac {{\left (a \cosh \left (d x + c\right ) + a \sinh \left (d x + c\right )\right )} \sqrt {\frac {b}{a}}}{2 \, b}\right ) + \cosh \left (d x + c\right )^{2} + 2 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + \sinh \left (d x + c\right )^{2} + 1}{2 \, {\left (a d \cosh \left (d x + c\right ) + a d \sinh \left (d x + c\right )\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 44, normalized size = 0.94 \[ \frac {b \arctan \left (\frac {\mathrm {sech}\left (d x +c \right ) b}{\sqrt {a b}}\right )}{d a \sqrt {a b}}+\frac {1}{d a \,\mathrm {sech}\left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {{\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )} e^{\left (-d x - c\right )}}{2 \, a d} - \frac {1}{2} \, \int \frac {4 \, {\left (b e^{\left (3 \, d x + 3 \, c\right )} - b e^{\left (d x + c\right )}\right )}}{a^{2} e^{\left (4 \, d x + 4 \, c\right )} + a^{2} + 2 \, {\left (a^{2} e^{\left (2 \, c\right )} + 2 \, a b e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 42, normalized size = 0.89 \[ \frac {\mathrm {cosh}\left (c+d\,x\right )}{a\,d}-\frac {b\,\mathrm {atan}\left (\frac {a\,\mathrm {cosh}\left (c+d\,x\right )}{\sqrt {a\,b}}\right )}{a\,d\,\sqrt {a\,b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sinh {\left (c + d x \right )}}{a + b \operatorname {sech}^{2}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________